package com.zretc.entity;

import java.io.Serializable;
/**
 * implements Serializable 扩展而言；
 * 现有的代码中，是没有任何效果；
 * 后续进行序列化操作的实现备用；
 * 同时，实现序列化接口是一个标准的bean的写法;
 * @author admin
 *
 */
public class News implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -488858274502865765L;
	private int newsid;
	private String newstitle;
	private String newscontent;
	private String pubdate;
	private String author;

	public News() {
		System.out.println("构造方法的执行");
	}

	/**
	 * 带参数的构造
	 * @param newsid
	 * @param newstitle
	 * @param newscontent
	 * @param pubdate
	 * @param author
	 */
	public News(int newsid, String newstitle, String newscontent, String pubdate, String author) {
		super();
		this.newsid = newsid;
		this.newstitle = newstitle;
		this.newscontent = newscontent;
		this.pubdate = pubdate;
		this.author = author;
	}

	@Override
	public String toString() {
		return "News [newsid=" + newsid + ", newstitle=" + newstitle + ", newscontent=" + newscontent + ", pubdate="
				+ pubdate + ", author=" + author + "]";
	}

	/**
	 * @return the newsid
	 */
	public int getNewsid() {
		return newsid;
	}

	/**
	 * @param newsid the newsid to set
	 */
	public void setNewsid(int newsid) {
		this.newsid = newsid;
	}

	/**
	 * @return the newstitle
	 */
	public String getNewstitle() {
		return newstitle;
	}

	/**
	 * @param newstitle the newstitle to set
	 */
	public void setNewstitle(String newstitle) {
		this.newstitle = newstitle;
	}

	/**
	 * @return the newscontent
	 */
	public String getNewscontent() {
		return newscontent;
	}

	/**
	 * @param newscontent the newscontent to set
	 */
	public void setNewscontent(String newscontent) {
		this.newscontent = newscontent;
	}

	/**
	 * @return the pubdate
	 */
	public String getPubdate() {
		return pubdate;
	}

	/**
	 * @param pubdate the pubdate to set
	 */
	public void setPubdate(String pubdate) {
		this.pubdate = pubdate;
	}

	/**
	 * @return the author
	 */
	public String getAuthor() {
		return author;
	}

	/**
	 * @param author the author to set
	 */
	public void setAuthor(String author) {
		this.author = author;
	}

}
